﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace PortalCurriculo.Domain
{
    public partial class VagaIdioma : Interface.IVagaIdioma
    {
        public List<VagaIdioma> SelecionarLista()
        {
            return (from vagaIdioma in Context.Instance.VagaIdiomas
                    where (vagaIdioma.IdVaga.Equals(IdVaga) || IdVaga.Equals(0))
                    select vagaIdioma).ToList();
        }
        
        public VagaIdioma Selecionar()
        {
            return (from vagaIdioma in Context.Instance.VagaIdiomas
                    where (vagaIdioma.Id.Equals(Id) || Id.Equals(0))
                    select vagaIdioma).FirstOrDefault();
        }
    }
}
